/* gcc -Wall `pkg-config --libs --cflags enesim emage` ellipse01.c -o ellipse01 -I../ */
#include "Enesim.h"
#include "example.h"

static Enesim_Renderer * ellipse(void)
{
	Enesim_Renderer *r;
	Enesim_Matrix m;
	Eina_Rectangle b;

	r = enesim_renderer_ellipse_new();
	enesim_renderer_ellipse_x_set(r, 150);
	enesim_renderer_ellipse_y_set(r, 150);
	enesim_renderer_ellipse_x_radius_set(r, 50);
	enesim_renderer_ellipse_y_radius_set(r, 100);
	enesim_matrix_scale(&m, 2, 2);
	enesim_renderer_transformation_set(r, &m);
	enesim_renderer_destination_bounds(r, &b, 0, 0);
	printf("destination bounds %d %d %d %d\n", b.x, b.y, b.w, b.h);

	return r;
}

EXAMPLE(ellipse)

